package router

import (
	"coroutine/api_client/basic/config"
	"coroutine/api_client/handler/api"
	"github.com/gin-gonic/gin"
	jwt2 "github.com/golangblogs/gojwt"
)

func OrderModel(r *gin.RouterGroup) {
	orderModel := r.Group("order")
	{
		orderModel.Use(jwt2.JWTAuth(config.JWT_SELECT_KEY))
		orderModel.POST("/addOrder", api.AddOrder)
		orderModel.POST("/queryOrder", api.QueryOrder)
		orderModel.POST("/queryOrderType", api.QueryOrderType)
		orderModel.POST("/queryTickerId", api.QueryTickerId)
	}
}
